import request from '../utils/request.js'

export const getSlides = () => {
  return request.get('/slides')
}

export const getCategories = () => {
  return request.get('/categories')
}


export const getCategoriesById = (id) => {
  return request.get('/categories/' + id)
}


export const getShops = ({
  id,
  page,
  limit
}) => {
  return request.get(`/shops?categoryId=${id}&_page=${page}&_limit=${limit}`)
}